package com.jenings.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jenings.shop.entity.Shopping;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ShoppingMapper extends BaseMapper<Shopping> {
    //查询全部商品
    public List<Shopping> selectAll();
    //查询部分商品,模糊查询
    public List<Shopping> selectSome(String spname);
    //查询指定商品
    public Shopping selectByte(String spname);
    //修改商品信息
    public boolean updateByte(Shopping shopping);
    //添加商品
    public boolean addByte(Shopping shopping);
    //删除商品
    public boolean delByte(Integer spid);
}
